#include <iostream>
using namespace std;

class Complex {
    private:
        int a, b;
    public:
        Complex(int x, int y) // parameterised constructor
        { 
            a = x; b = y;
        }
        Complex(int k) 
        {
            a = k; b = k;
        }
        Complex () { a=b=0; } // default constructor

        Complex (Complex &c) // Copy Constructor
        {
            a = c.a;
            b = c.b;
        }

        void get_data() {
            cout << a << " " << b << endl;
        }

        ~Complex(){
            cout << "destructor invoked" << endl;
        }
};

int main () {
    Complex c1(1,2);
    Complex c5 = c1;
    c1.get_data();
    // Complex c2 = Complex(5,6), c3 = 4, c4;
    // c2.get_data();
    // c3.get_data();
    // c4.get_data();
    c5.get_data();
}